﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ObjectBuilder;
using SimilarityScoring;

namespace DPF_1._5
{
    class Program
    {
        static void Main(string[] args)
        {
             
            if (args.Length > 0)
            {

                Parser p = new Parser("Observer.dll");
                p.parse();
                p.buildMatrix();
                Console.WriteLine(p.ToString(p.Gen));
                Console.WriteLine(p.ToString(p.Asc));
                //p.method();
                Similarity sim = new Similarity();
                try
                {
                    sim.calculate(p);
                    Console.WriteLine(sim.GetScore());
                }
                catch (ApplicationException e)
                {
                    Console.WriteLine(e.Message);
                }


                //double[,] a = { { 0, 0, 0 }, { 1, 0, 0 }, { 0, 1, 0 } };
                //double[,] b = { { 0, 0 }, { 1, 0 } };
                //double[,] c = { { 1, 2 }, { 1, 2 }, { 3, 2} };

                //Console.WriteLine(c.GetLength(0));//2 radky
                //Console.WriteLine(c.GetLength(1));//3 sloupce
                //MatrixCalculator.MatrixCalculator mc = new MatrixCalculator.MatrixCalculator();
                

                ////Console.WriteLine(mc._1norm(c));

                //SimilarityScoring.SimilarityScoring.calculate(b, a);
                Console.ReadKey();
            }
            else
            {
                Console.WriteLine("!!! ZADEJTE NAZEV SOUBORU JAKO PARAMETR PRI SPOUSTENI !!!\n napr. DPF.exe MyApp.dll ");
                Console.ReadKey();
            }
        }
    }
}
